package homeworks.cjt2010.homework1;

public enum PersonalDiscount {
	NULL_LEVEL(0, 0, 99999), FIRST_LEVEL(0.05, 100000, 999999), SECOND_LEVEL(0.1,
			1000000, Long.MAX_VALUE);

	private double percent = 0d;
	private long lowerBound = 0L;
	private long upperBound = 0L;

	private PersonalDiscount(double percent, long lowerBound, long upperBound) {
		this.percent = percent;
		this.lowerBound = lowerBound;
		this.upperBound = upperBound;
	}

	public long getLowerBound() {
		return lowerBound;
	}

	public long getUpperBound() {
		return upperBound;
	}

	public double getPercent() {
		return percent;
	}

}
